package com.solution.admin.customer.dao;

import java.util.List;
import java.util.Map;

import com.solution.admin.customer.entity.CustomerCustomFieldEntity;
import com.solution.common.dao.BaseDao;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 客户属性自定义DAO接口
 * @author solin
 * @date 2017-09-27 09:19:24
 */
public interface CustomerCustomFieldDao extends BaseDao<CustomerCustomFieldEntity> {
	
	/**
	 * 保存客户属性自定义
	 * @param customerCustomFieldEntity
	 * @return
	 * @author solin
	 * @date 2017-09-27 09:19:24
	 */
	public long saveCustomerCustomField(CustomerCustomFieldEntity customerCustomFieldEntity);

	/**
	 * 分页查询客户属性自定义信息
	 * @param pageParam 分页对象
	 * @param customerCustomField 分页参数
	 * @return PageBean 分页参数及数据
	 * @author solin
	 * @date 2017-09-27 09:19:24
	 */
	public PageBean listCustomerCustomFieldPage(PageParam pageParam, Map<String, Object> param);

	/**
	 * 更新客户属性自定义
	 * @param customerCustomFieldEntity
	 * @return
	 * @author solin
	 * @date 2017-09-27 09:19:24
	 */
	public int updateCustomerCustomField(CustomerCustomFieldEntity customerCustomFieldEntity);


	/**
	 * 删除客户属性自定义角色
	 * @param id
	 * @return
	 * @author solin
	 * @date 2017-09-27 09:19:24
	 */
	public int deleteCustomerCustomFieldById(Long id);
	
	/**
	 * 根据客户属性自定义类型获取客户属性自定义
	 * @param param
	 * @return
	 * @author solin
	 * @date 2017-09-27 09:19:24
	 */
	public List<CustomerCustomFieldEntity> listCustomerCustomField( Map<String, Object> param);
}
